SUBROUTINE EBOXA
* Display a simple form, requesting entry of a name in a single editbox* Include the RealWeb definitions
INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP
* Start the HTML page.CALL RW_START_HTML_PAGE("First Form", "", "", "", "")
BUF = "Please enter your name in the box, then click the Go button:"
CALL RWS_PARA(BUF, "", "")CALL RW_PUT(BUF)* Create the editbox
BUF = ""
CALL RWA_EDIT_BOX(BUF, "NAME", 30, "")* Create the submit buttonCALL RWA_SUBMIT_BUTTON(BUF, "GO", "")* Create the HTML form, specifying that the subroutine HELLO should be run* when the submit button is clicked.CALL RWS_FORM(BUF, "HELLO", "FORM1", "")* Output the form.CALL RW_PUT(BUF)* Complete the page.CALL RW_END_PAGE
RETURN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><META NAME="Generator" CONTENT="Reality"><TITLE>First Form</TITLE></HEAD><BODY><P>
Please enter your name in the box, then click the Go button:
</P><FORM ACTION="HELLO" NAME="FORM1" METHOD="POST"><INPUT NAME="NAME" SIZE="30" TYPE="TEXT"><INPUT TYPE="submit" VALUE="GO"></FORM></BODY></HTML>